package cn.tedu.hospitalgroupproject.server.content.dao.persist.repository.impl;

import cn.tedu.hospitalgroupproject.server.content.dao.persist.mapper.WorkScheduleMapper;
import cn.tedu.hospitalgroupproject.server.content.dao.persist.repository.IWorkScheduleRepository;
import cn.tedu.hospitalgroupproject.server.content.pojo.entity.WorkSchedule;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


@Slf4j
@Repository
public class WorkScheduleRepositoryImpl implements IWorkScheduleRepository {


    @Autowired
    private WorkScheduleMapper workScheduleMapper;

    public WorkScheduleRepositoryImpl() {
        log.debug("创建数据库对象:WorkScheduleRepositoryImpl");
    }

    @Override
    public int insert(WorkSchedule workSchedule) {
        log.debug("开始向[排班表]中添加数据:{}",workSchedule);
        return workScheduleMapper.insert(workSchedule);
    }
}
